package pojo;

import java.util.Date;

/**
 * 用户订单实体类
 * @author 胡文摇
 */
public class Order {
    /**
     * 订单id
     */
    private int orderId;
    /**
     * 用户id
     */
    private int consumerId;
    /**
     * 用户账号
     */
    private String consumerAccount;
    /**
     * 商品id(集合)
     */
    private String wareId;
    /**
     * 商品名称
     */
    private String wareName;

    /**
     * 订单总价
     */
    private int orderPrice;

    /**
     * 订单状态
     */
    private int orderState;

    /**
     * 收货地址
     */
    private String orderAddress;

    /**
     * 订单备注
     */
    private String orderRemarks;

    /**
     * 下单时间
     */
    private Date orderDate;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(int consumerId) {
        this.consumerId = consumerId;
    }

    public String getConsumerAccount() {
        return consumerAccount;
    }

    public void setConsumerAccount(String consumerAccount) {
        this.consumerAccount = consumerAccount;
    }

    public String getWareId() {
        return wareId;
    }

    public void setWareId(String wareId) {
        this.wareId = wareId;
    }

    public String getWareName() {
        return wareName;
    }

    public void setWareName(String wareName) {
        this.wareName = wareName;
    }

    public int getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(int orderPrice) {
        this.orderPrice = orderPrice;
    }

    public int getOrderState() {
        return orderState;
    }

    public void setOrderState(int orderState) {
        this.orderState = orderState;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public String getOrderRemarks() {
        return orderRemarks;
    }

    public void setOrderRemarks(String orderRemarks) {
        this.orderRemarks = orderRemarks;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Order() {
    }

    public Order(int orderId, int consumerId, String consumerAccount, String wareId, String wareName, int orderPrice, int orderState, String orderAddress, String orderRemarks, Date orderDate) {
        this.orderId = orderId;
        this.consumerId = consumerId;
        this.consumerAccount = consumerAccount;
        this.wareId = wareId;
        this.wareName = wareName;
        this.orderPrice = orderPrice;
        this.orderState = orderState;
        this.orderAddress = orderAddress;
        this.orderRemarks = orderRemarks;
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", consumerId=" + consumerId +
                ", consumerAccount='" + consumerAccount + '\'' +
                ", wareId='" + wareId + '\'' +
                ", wareName='" + wareName + '\'' +
                ", orderPrice=" + orderPrice +
                ", orderState=" + orderState +
                ", orderAddress='" + orderAddress + '\'' +
                ", orderRemarks='" + orderRemarks + '\'' +
                ", orderDate=" + orderDate +
                '}';
    }
}
